package com.yuanfeng.userms.controller;

import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.userms.dto.ShopVipUserDTO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName UserVipController
 * @Description
 * @Author liulh
 * @Date 2023/8/8 16:07
 * @Version 1.0
 **/
@RestController
@RequestMapping("userVip")
public class UserVipController extends BaseController {

    /**
     * 商家中心-会员管理-查询
     *
     * @param param
     * @return
     */
    @PostMapping("/queryShopVipUser")
    public ResponseResult queryShopVipUser(@RequestBody ShopVipUserDTO param) {
        ResponseResult result =userVipService.queryShopVipUser(param);
        return result;
    }

    /**
     * 商家中心-会员管理-添加标签
     *
     * @param param
     * @return
     */
    @PostMapping("/editShopVipUser")
    public ResponseResult editShopVipUser(@RequestBody ShopVipUserDTO param) {
        ResponseResult result =userVipService.editShopVipUser(param);
        return result;
    }

    /**
     * 商家中心-会员管理-删除
     *
     * @param param
     * @return
     */
    @PostMapping("/delShopVipUser")
    public ResponseResult delShopVipUser(@RequestBody ShopVipUserDTO param) {
        ResponseResult result =userVipService.delShopVipUser(param);
        return result;
    }
}
